var videoModel = new Starcor.S67.MVC.Model("video_library");
videoModel.query=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_a_1',function(data){
        if (data.code=='0'){
            videoModel.data=data.data;
        }else{
            videoModel.data = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        videoModel.disEvent('query', videoModel.data);
    });
};

videoModel.videoDetail=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_a_2',function(data){
        if (data.code=='0'){
            videoModel.videodata=data;
        }else{
            videoModel.videodata = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        videoModel.disEvent('videoDetail', videoModel.videodata);
    });
};


	